package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@Data
@TableName("user")
@ApiModel(value = "book对象", description = "")
@ToString
public class Book {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("ISBN")
    @JsonProperty(value="ISBN")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ISBN;
    @ApiModelProperty("书名")
    private String bname;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("价格")
    private String price;
    @ApiModelProperty("库存")
    private Integer inventory;
    @ApiModelProperty("封面")
    private String tupian;
    @ApiModelProperty("简介")
    private String introduction;
}
